package org.dromara.pay.domain.vo;

import java.math.BigDecimal;
import org.dromara.pay.domain.PayActivityOrder;
import org.dromara.pay.domain.PayActivityRegistration;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import org.dromara.common.core.utils.tree.TreeCruxField;
import org.dromara.wx.domain.WxUser;
import org.dromara.system.domain.SysUser;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.io.Serial;
import java.io.Serializable;

/**
 * 订单视图对象 pay_activity_order
 *
 * @author yf
 * @date 2024-07-22
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PayActivityOrder.class)
public class PayActivityOrderVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @ExcelProperty(value = "订单ID")
    private Integer orderId;
    /**
     * 订单名称
     */
    @ExcelProperty(value = "订单名称")
    private String subject;
    /**
     * 创建人wx_user（西湖论剑用户）
     */
    @ExcelProperty(value = "创建人wx_user")
    @Translation(type = WxUser.TRANS_ID_TO_VO, mapper = "createBy")
    private Object wxUser;
    private Integer createBy;
    /**
     * 活动报名ID
     */
    @ExcelProperty(value = "活动报名ID")
    @Translation(type = PayActivityRegistration.TRANS_ID_TO_OBJECT, mapper = "activityRegistrationId")
    private Object activityRegistration;
    private Integer activityRegistrationId;
    /**
     * 总金额
     */
    @ExcelProperty(value = "总金额")
    private BigDecimal totalAmount;
    /**
     * 联系电话
     */
    @ExcelProperty(value = "联系电话")
    private String contactPhone;
    /**
     * 付款方式（0=支付宝，1=微信支付，2=银联）
     */
    @ExcelProperty(value = "付款方式", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "payment_method")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "pay_activity_order", mapper = "paymentMethod")
    private String paymentMethodDictData;
    private String paymentMethod;
    /**
     * 订单状态（0=未支付，1=已支付）
     */
    @ExcelProperty(value = "订单状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "order_status")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "pay_activity_order", mapper = "orderStatus")
    private String orderStatusDictData;
    private String orderStatus;
    /**
     * 到场二维码图片
     */
    @ExcelProperty(value = "到场二维码图片")
    private String qrCodeImage;
    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;
}
